package com.rickpan.event;

import com.rickpan.dto.response.TeamMessageDTO;
import org.springframework.context.ApplicationEvent;

/**
 * 团队消息事件
 */
public class TeamMessageEvent extends ApplicationEvent {

    private final TeamMessageDTO message;

    public TeamMessageEvent(Object source, TeamMessageDTO message) {
        super(source);
        this.message = message;
    }

    public TeamMessageDTO getMessage() {
        return message;
    }
}
